package cn.gzjp.modules.rice.entity;

import org.hibernate.validator.constraints.Length;

import cn.gzjp.common.persistence.DataEntity;
import cn.gzjp.common.utils.excel.annotation.ExcelField;

/**
 * 会员地址Entity
 * @author zengcp
 * @version 2018-11-17
 */
public class RiceMemAddress extends DataEntity<RiceMemAddress> {
	
	private static final long serialVersionUID = 1L;
	private String openid;		// 买家openid
	private String phone;		// 收件人手机号
	private String name;		// 名称
	private String province;		// 省
	private String city;		// 城市
	private String area;		// 区
	private String address;		// 收件地址
	
	public RiceMemAddress() {
		super();
	}

	public RiceMemAddress(String id){
		super(id);
	}

	@Length(min=0, max=32, message="买家openid长度必须介于 0 和 32 之间")
	@ExcelField(title="买家openid", align=2, sort=1)
	public String getOpenid() {
		return openid;
	}

	public void setOpenid(String openid) {
		this.openid = openid;
	}
	
	@Length(min=0, max=20, message="收件人手机号长度必须介于 0 和 20 之间")
	@ExcelField(title="收件人手机号", align=2, sort=2)
	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}
	
	@Length(min=0, max=128, message="名称长度必须介于 0 和 128 之间")
	@ExcelField(title="名称", align=2, sort=3)
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
	@Length(min=0, max=50, message="省长度必须介于 0 和 50 之间")
	@ExcelField(title="省", align=2, sort=4)
	public String getProvince() {
		return province;
	}

	public void setProvince(String province) {
		this.province = province;
	}
	
	@Length(min=0, max=50, message="城市长度必须介于 0 和 50 之间")
	@ExcelField(title="城市", align=2, sort=5)
	public String getCity() {
		return city;
	}

	public void setCity(String city) {
		this.city = city;
	}
	
	@Length(min=0, max=50, message="区长度必须介于 0 和 50 之间")
	@ExcelField(title="区", align=2, sort=6)
	public String getArea() {
		return area;
	}

	public void setArea(String area) {
		this.area = area;
	}
	
	@Length(min=0, max=256, message="收件地址长度必须介于 0 和 256 之间")
	@ExcelField(title="收件地址", align=2, sort=7)
	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}
	
}